package com.suning.app.snpaasadmin.pojo;

import java.io.Serializable;
import java.util.Date;

public class CfCluster implements Serializable {
    private Integer id;

    private String clusterName;

    private String cfRelease;

    private String directorUuid;

    private String rootDomain;

    private String componentDomain;

    private String runingtimeDomain;

    private String sdfsAddress;

    private String networkId;

    private Integer status;

    private Date createTime;

    private Date updateTime;

    private String taskId;

    private String filePath;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName == null ? null : clusterName.trim();
    }

    public String getCfRelease() {
        return cfRelease;
    }

    public void setCfRelease(String cfRelease) {
        this.cfRelease = cfRelease == null ? null : cfRelease.trim();
    }

    public String getDirectorUuid() {
        return directorUuid;
    }

    public void setDirectorUuid(String directorUuid) {
        this.directorUuid = directorUuid == null ? null : directorUuid.trim();
    }

    public String getRootDomain() {
        return rootDomain;
    }

    public void setRootDomain(String rootDomain) {
        this.rootDomain = rootDomain == null ? null : rootDomain.trim();
    }

    public String getComponentDomain() {
        return componentDomain;
    }

    public void setComponentDomain(String componentDomain) {
        this.componentDomain = componentDomain == null ? null : componentDomain.trim();
    }

    public String getRuningtimeDomain() {
        return runingtimeDomain;
    }

    public void setRuningtimeDomain(String runingtimeDomain) {
        this.runingtimeDomain = runingtimeDomain == null ? null : runingtimeDomain.trim();
    }

    public String getSdfsAddress() {
        return sdfsAddress;
    }

    public void setSdfsAddress(String sdfsAddress) {
        this.sdfsAddress = sdfsAddress == null ? null : sdfsAddress.trim();
    }

    public String getNetworkId() {
        return networkId;
    }

    public void setNetworkId(String networkId) {
        this.networkId = networkId == null ? null : networkId.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId == null ? null : taskId.trim();
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath == null ? null : filePath.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CfCluster other = (CfCluster) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getClusterName() == null ? other.getClusterName() == null : this.getClusterName().equals(other.getClusterName()))
            && (this.getCfRelease() == null ? other.getCfRelease() == null : this.getCfRelease().equals(other.getCfRelease()))
            && (this.getDirectorUuid() == null ? other.getDirectorUuid() == null : this.getDirectorUuid().equals(other.getDirectorUuid()))
            && (this.getRootDomain() == null ? other.getRootDomain() == null : this.getRootDomain().equals(other.getRootDomain()))
            && (this.getComponentDomain() == null ? other.getComponentDomain() == null : this.getComponentDomain().equals(other.getComponentDomain()))
            && (this.getRuningtimeDomain() == null ? other.getRuningtimeDomain() == null : this.getRuningtimeDomain().equals(other.getRuningtimeDomain()))
            && (this.getSdfsAddress() == null ? other.getSdfsAddress() == null : this.getSdfsAddress().equals(other.getSdfsAddress()))
            && (this.getNetworkId() == null ? other.getNetworkId() == null : this.getNetworkId().equals(other.getNetworkId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getTaskId() == null ? other.getTaskId() == null : this.getTaskId().equals(other.getTaskId()))
            && (this.getFilePath() == null ? other.getFilePath() == null : this.getFilePath().equals(other.getFilePath()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getClusterName() == null) ? 0 : getClusterName().hashCode());
        result = prime * result + ((getCfRelease() == null) ? 0 : getCfRelease().hashCode());
        result = prime * result + ((getDirectorUuid() == null) ? 0 : getDirectorUuid().hashCode());
        result = prime * result + ((getRootDomain() == null) ? 0 : getRootDomain().hashCode());
        result = prime * result + ((getComponentDomain() == null) ? 0 : getComponentDomain().hashCode());
        result = prime * result + ((getRuningtimeDomain() == null) ? 0 : getRuningtimeDomain().hashCode());
        result = prime * result + ((getSdfsAddress() == null) ? 0 : getSdfsAddress().hashCode());
        result = prime * result + ((getNetworkId() == null) ? 0 : getNetworkId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getTaskId() == null) ? 0 : getTaskId().hashCode());
        result = prime * result + ((getFilePath() == null) ? 0 : getFilePath().hashCode());
        return result;
    }
}